import request from '@/utils/request'

// 上传图片
export function uploadImage(data) {
  return request({
    url: '/system/upload/image',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data',
    },
    data
  })
}
export const getService= () => {
  return request({
    url: '/system/customer/service/list',
    method: 'get'
  })
}

//新增/修改
export const addOrUpdateService = (query) => {
  return request({
    url: '/system/customer/service/addOrUpdate',
    method: 'post',
    data: query
  })
}
// 获取房间列表
export const getRoomList = (query) => {
  return request({
    url: '/system/order/building/room/list',
    method: 'get'
  })
}
